<?php


namespace app\api\validate;
use think\Validate;

class CarNumber extends Validate
{
    protected $rule =   [
        'car_number'      => 'require',
        'car_name'     => 'require',
    ];
    protected $message  =   [
        'car_number.require'  => '请输入车牌号',
        'car_name.require' => '请输入车类型',
    ];
    protected $scene = [
        'create'       => ['car_name','car_number'],
    ];}